package com.atty.dms.dao.entity;

import lombok.Builder;
import lombok.Data;

/**
 * ClassName:DormitoryStudentDO
 * Package:com.atty.dms.dao.entity
 * Description:
 *
 * @Author:tony
 * @Create :2025/4/15 9:06
 * @Version :1.0
 */

import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;

@TableName("dormitories_students")
@Builder
@Data
public class DormitoryStudentDO {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 宿舍id
     */
    private Long dormitoryId;

    /**
     * 学生id
     */
    private Long studentId;

    /**
     * 分配时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER)
    private Date assignedAt;


}